﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Services
{
    public interface IService
    {
        void Insert<T>(T obj, string collectionName = null);
        void Update<T>(T obj, string collectionName = null);
        void Delete<T>(T obj, string collectionName = null);
        List<T> Search<T>(Expression<Func<T, bool>> expression, string collectionName = null);
    }
}
